<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:rich="http://richfaces.org/rich">

    <h:body>
        <ui:composition template="/template.xhtml">

            <ui:define name="body">
                <h:outputScript name="jquery.js" target="head" />

                <h:form styleClass="jsfcrud_list_form" prependId="false">
                    <a4j:outputPanel id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" rendered="true" infoStyle="color: green" layout="table"/>
                    </a4j:outputPanel>

                    <div id="loginFull"  data-corner="bottom 10px" style="position:relative">
                        <div id="loginContainer" style="position:absolute;left:280px">

                            <table class="tableLogin" border="0" cellspacing="0" cellpadding="4">

                                <tr>
                                    <td width="110" style="text-align:right; font-size: 10px">
                                        Usuário:
                                    </td>
                                    <td width="90" colspan="2">
                                        <h:inputText id="usuario" value="#{userManager.username}" style="width: 130px" maxlength="50" title="Usuario" />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align:right;font-size: 10px">Senha:</td>
                                    <td ><h:inputSecret id="senha" value="#{userManager.password}" maxlength="8"  style="width: 130px" title="Senha" />
                                    </td>
                                    <td rowspan="1">
                                        <h:commandButton value="Login"  action="#{userManager.login}" >
                                            <f:param id="isExterno" value="true" name="isExterno" />
                                        </h:commandButton>


                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <h:commandLink style="text-align:right;font-size: 10px;" value="Cadastre-se" action="/usuarioCli/Create.xhtml" >


                                        </h:commandLink>
                                    </td>
                                </tr>
                            </table>

                        </div>


                    </div>
                </h:form>
            </ui:define>
        </ui:composition>

    </h:body>


</html>

